﻿using System.Windows;

namespace MyRecipeBook.UI.Windows
{
    /// <summary>
    /// Interaction logic for WindowIngredient.xaml
    /// </summary>
    public partial class WindowIngredient
    {
        public static DependencyProperty IngredientIdProperty =
            DependencyProperty.Register(
                "IngredientId",
                typeof (int),
                typeof (WindowIngredient),
                new PropertyMetadata(0));

        public int IngredientId
        {
            get { return (int) GetValue(IngredientIdProperty); }
            set { SetValue(IngredientIdProperty, value); }
        }

        public WindowIngredient()
        {
            InitializeComponent();
        }

        private void ButtonCancel_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}